package com.wang.users.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 角色的Pojo
 * Data:就是lombok,自动的生成读写器,空的构造方法,重写hashcode和equals方法
 * 让我们的pojo代码更加的简洁
 *
 * @author Zjx
 */
@Data
@TableName("a_role")
public class Arole {
    /**
     * value等于表的列名
     * ASSIGN_ID:雪花算法,==uuid;保证全球唯一;
     * 建议主键的类型设置为string,
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private String content;
    private Byte status;
    /**
     * 表的列名和属性名不一样
     */
    @TableField(value = "createTime")
    private Date createTime;
    @TableField(value = "updateTime")
    private Date updateTime;
    private String creater;
    private String updater;
    @TableField(value = "pubTime")
    private Date pubTime;
}
